package DaEr3_2;

import java.util.Scanner;

public class BianLi {
    public static void main(String[] args) {
        //字符串遍历
        int big=0,small=0,num=0;
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i)>='a'&&str.charAt(i)<='z'){
                small++;
            }else  if (str.charAt(i)>='A'&&str.charAt(i)<='Z'){
                big++;
            }else  if (str.charAt(i)>='0'&&str.charAt(i)<='9'){
                num++;
            }
        }
        System.out.println("small = " + small);
        System.out.println("big = " + big);
        System.out.println("num = " + num);
//字符遍历
        char []str1={'a','b','c'};
        for (int i = 0; i < str1.length; i++) {
            System.out.println("str1[i] = " + str1[i]);
        }
//整形遍历
        int[]str2={0,1,2};
        for (int i = 0; i < str2.length; i++) {
            System.out.println("str2[i] = " + str2[i]);
        }
    }
}
